package com.neusoft.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.neusoft.entity.Pay;
import com.neusoft.entity.Rent;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * (Pay)表数据库访问层
 *
 * @author makejava
 * @since 2020-06-16 11:29:12
 */
@Mapper
@Repository
public interface PayDao extends BaseDao<Pay>{

    Pay queryById(Integer id);

    List<Pay> queryAllByLimit(@Param("offset") int offset, @Param("limit") int limit, Pay rent);

    List<Pay> queryAll(IPage<Pay> page, @Param("bean") Pay bean);

}